package main

/*
#include <stdio.h>
#include <stdlib.h>
#include "interface.hh"

#cgo CFLAGS: -I../
#cgo LDFLAGS: -L../build/ -lsysmonitor -L/usr/lib/vpe/ -lvpeencode
*/
import "C"
import "fmt"


//export LD_LIBRARY_PATH=/home/lzh/lzh/code/system_monitor/build/
 
func main() {
   fmt.Println("Hello, World!")

   //ptr unsafe.Pointer
   p_system := C.init_system_monitor();
   str :=  C.get_system_status(p_system);  
   fmt.Println(C.GoString(str))
   C.free_system_status(str);
   C.close_system_monitor(p_system);
}

